<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/brandActivity',
    'namespace' => 'Beerus\\Modules\\BrandActivity\\Controllers',
    'middleware' => ['web', 'admin'],
], function (Router $router) {
    $router->get('/', function () {
        return redirect('/admin/brandActivity/index');
    });
    $router->get('/index', 'IndexController@index');//品牌活动总览
    $router->get('/logistics', 'LogisticsController@index');//物流记录表
    $router->get('/rights', 'IndexController@rights');//活动权益列表
    $router->get('/rights/export', 'IndexController@exportRights');//活动权益导出
    #家装节活动内容
    $router->get('/scontent', 'ContentController@index');
    $router->get('/scontent/create', 'ContentController@create');
    $router->post('/scontent/save', 'ContentController@save');
    $router->put('/scontent/{id}', 'ContentController@editSave');
    #家装节活动内容主题
    $router->get('/stopic', 'TopicController@index');
    $router->get('/stopic/create', 'TopicController@create');
    $router->post('/stopic/save', 'TopicController@save');
    $router->put('/stopic/{id}', 'TopicController@editSave');
    #家装节商品
    $router->get('/sproduct', 'ProductController@index');
    $router->get('/sproduct/create', 'ProductController@create');
    $router->post('/sproduct/save', 'ProductController@save');
    $router->put('/sproduct/{id}', 'ProductController@editSave');

});